Skip to content

feat(use-field): add use field to textarea, timeinput - #6705

Open
philibea wants to merge 2 commits into
mainfrom
use-field-simple
Open

feat(use-field): add use field to textarea, timeinput#6705
philibea wants to merge 2 commits into
mainfrom
use-field-simple

Conversation

@philibea

@philibea philibea commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Type

  • Migration

Summarize concisely:

What is expected?

Migrate TextAreaField, TimeInputField with new hook: useField

  • Create 3 types
  • PartialLabelProps ( all field are optional )
  • LabelProps ( at least one of the field
  • BaseFormComponentProps ( by default using PartialLabelProps )

When a component used to have a XOR type for Label we need to use the same type inside ultraviolet/form and ultraviolet/ui instead of tring to infer with ````ComponentProps```

@philibea philibea added the enhancement New feature or request label Jul 23, 2026
@changeset-bot

changeset-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: dc54b16

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@ultraviolet/ui Patch
@ultraviolet/form Patch
@ultraviolet/nextjs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.00%. Comparing base (1fb7b25) to head (3546d91).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6705      +/-   ##
==========================================
- Coverage   91.01%   91.00%   -0.01%     
==========================================
  Files         560      560              
  Lines       10253    10233      -20     
  Branches     3692     3707      +15     
==========================================
- Hits         9332     9313      -19     
+ Misses        921      920       -1     
Files with missing lines Coverage Δ
...ckages/form/src/components/KeyValueField/index.tsx 100.00% <ø> (ø)
...ckages/form/src/components/TextAreaField/index.tsx 100.00% <100.00%> (+7.40%) ⬆️
...kages/form/src/components/TimeInputField/index.tsx 100.00% <100.00%> (ø)
packages/form/src/hooks/useField.tsx 100.00% <ø> (ø)
packages/ui/src/components/Checkbox/index.tsx 100.00% <ø> (ø)
packages/ui/src/components/Pagination/PerPage.tsx 100.00% <100.00%> (ø)
packages/ui/src/components/SelectInput/index.tsx 100.00% <ø> (ø)
packages/ui/src/components/TextArea/index.tsx 93.65% <ø> (ø)
packages/ui/src/components/TimeInput/index.tsx 96.66% <ø> (-0.56%) ⬇️
packages/ui/src/components/UnitInput/index.tsx 98.11% <ø> (ø)

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a893c89...3546d91. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread packages/ui/src/types.ts Outdated
Comment thread packages/ui/src/components/TimeInput/__tests__/index.test.tsx
Comment thread .changeset/small-coins-wink.md
Signed-off-by: Alexandre Philibeaux <aphilibeaux@scaleway.com>
Signed-off-by: Alexandre Philibeaux <aphilibeaux@scaleway.com>
Comment thread packages/form/src/components/TextAreaField/index.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants